package com.victor.pomelo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.victor.pomelo.model.Menu;

public interface MenuMapper {

	@Select("select * from TB_MENU where state='1'")
	public List<Menu> findAll();
	
	@Select("select * from TB_MENU where state='1' and parentid=#{parentid}")
	public List<Menu> findSubMenus(Long parentid);
	
	

}